import request from '@/utils/request'
const serviceName = 'System'

export function queryTenants(data) {
  return request({
    url: serviceName + '/Tenant/QueryTenants',
    method: 'post',
    data
  })
}

export function getTenant(Id) {
  return request({
    url: serviceName + '/Tenant/GetTenant?Id=' + Id,
    method: 'get'
  })
}

export function saveTenant(data) {
  return request({
    url: serviceName + '/Tenant/SaveTenant',
    method: 'post',
    data
  })
}

export function deleteTenants(data) {
  return request({
    url: serviceName + '/Tenant/DeleteTenants',
    method: 'post',
    data
  })
}

export default {
  queryTenants,
  getTenant,
  saveTenant,
  deleteTenants
}
